#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/5/8 下午2:03
# @Author  : zhangzhen
# @Site    : 
# @File    : demo.py
# @Software: PyCharm

import numpy as np
import re
# X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
# Y = np.array([1, 1, 1, 2, 3, 3])
#
# from sklearn.naive_bayes import GaussianNB
# clf = GaussianNB().fit(X, Y)
# print clf.predict([[3, 3]])

a = np.ones(7)
b = np.array([2,3,4,5,1,3.1,5])
print a*b

print b.argmax()

pos = 'བླ་/n མ་/nf རིན་/n པོ་/nf ཆེ/a འི་/kg དད་/n ལྡན་/v མང་/a ཚོགས་/n རྣམས་/n ལ་/kd དམ་/a པ/af འི་/kg ཆོས་/n ཀྱིས་/n བསླབ་/v གསོ་/v གནང་/v མགོ་/n བརྩམ་/v སོང་/v །/xp'
pos += ' '
pattern = re.compile(r'/(.*?)[ ]')
matchs = pattern.findall(pos)
for m in matchs:
    print m,